<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title><s:text name="system.page.title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js" charset="utf-8"></script>
<script type="text/javascript" src="js/ready.js" charset="utf-8"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function editorCustomer() {
		formId.submit();
	}
</script>
</head>
<body>
<div class="tools">
	<div class="tool">
	<ul>
		<li>
			<div onclick="editorCustomer()"><img src="image/button/filesave.png" width="20" height="20"/><span><s:text name='system.button.save'/></span></div>
		</li>
		<li>
			<div><img src="image/button/ABORT20.gif"/><span><s:text name='system.button.channel'/></span></div>
		</li>
	</ul>
	</div>
</div>
<form action="definedSaveCustomer.do" method="post" id="formId" name="formId">
<s:hidden name="bean.cust_id"/>
<div class="formatClass">
	<div class="formatData">
		<div class="formatTitle"><span><s:text name="rec.customer.setting"/></span></div>
		<div class="y-scroll" style="height:80%;">
			<table border="0" cellpadding="0" cellspacing="0"  class="listdetail" id="detail">
				<tr class="trhead">
					<td><s:text name="rec.customer.defined.name"/></td>
					<td><s:text name="rec.customer.defined.type"/></td>
					<td><s:text name="rec.customer.defined.length"/></td>
				</tr>
				<s:set name="seq" value="0"/>
				<s:iterator value="fields" id="f">
				<tr class="detailtd">
					<td>
						<input type="hidden" class="input" name="fields[<s:property value="#seq"/>].id" value="<s:property value="#f.id"/>">
						<input type="text" class="input" name="fields[<s:property value="#seq"/>].name" value="<s:property value="#f.name"/>">
					</td>
					<td>
						<input type="text" class="input" name="fields[<s:property value="#seq"/>].type" value="<s:property value="#f.type"/>">
					</td>
					<td>
						<input type="text" class="input" name="fields[<s:property value="#seq"/>].length" value="<s:property value="#f.length"/>">
					</td>
				</tr>
				<s:set name="seq" value="#seq+1"/>
				</s:iterator>
			</table>
		</div>
	</div>
</form>
</body>
</html>